package com.jadesoft.stock;

import org.apache.commons.mail.EmailException;

import com.jadesoft.stock.entity.User;


public interface UserBS {
	/**
	 * 保存或更新用户
	 */
	public User save(User user);
	
	/**
	 * 获取用户
	 * @param user
	 * @return
	 */
	public User find(User user);
	
	/**
	 * 用户注册
	 * @param user
	 * @return
	 */
	public User registerTA(User user) throws EmailException;

	/**
	 * 激活用户账号
	 * @param user
	 * @return
	 * @throws EmailException
	 */
	public User activeTA(User user) throws EmailException;

}
